package com.example.guestbookmybatis.service;


import com.example.guestbookmybatis.dao.BookMapper;
import com.example.guestbookmybatis.dao.UserMapper;
import com.example.guestbookmybatis.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public boolean check(User user) {
        if (userMapper.check(user)!=null){
            return true;
        }
        return false;
    }
}
